//
//  JYTADSView.h
//  JYT_IOS
//
//  Created by nxa-tankeke on 16/11/10.
//  Copyright © 2016年 nxa-yuanguoxiang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class JYTADSView;

@protocol JYTADSViewDelegate <NSObject>

@optional
/**
 *  当点击了广告图片的时候,会主动调用的代理方法
 *
 *  @param adsView   GPADSView对象
 *  @param index     点击的第几张图片
 *  @param imageName 图片的名称
 */
- (void)adsViewDidSelected:(JYTADSView *)adsView index:(NSInteger)index imageName:(NSString *)imageName;

@end


@interface JYTADSView : UIView

@property (nonatomic, copy)NSArray * imagesName;

@property (nonatomic, weak)id<JYTADSViewDelegate> delegate;
@property (nonatomic, copy)void(^adsViewDidSelectedBlock)(JYTADSView * adsView,NSInteger index,NSString * imageName);

+(id)adsViewWithFrame:(CGRect)frame;
@end
